/*
 * daisy.h
 *
 *  Created on: 2009-8-10
 *      Author: leaf
 */

#ifndef DAISY_H_INCLUDED
#define DAISY_H_INCLUDED

struct dc_msg{
	uint8_t addr;
	uint8_t id;
	uint8_t data[4];
};

void load_dc_msg( struct dc_msg *m, uint8_t *buf );
void dc_send( const struct dc_msg *m );
inline void dc_set_mid( uint8_t mid );
inline void dc_set_addr( uint8_t addr );
inline void dc_set_wait( pMsgBox mb );
void dc_msg_print( struct dc_msg *m );
DECL_TASK_EXT( daisy_01 );
DECL_TASK_EXT( daisy_10 );

#endif /* DAISY_H_INCLUDED */
